package com.leslie.speed.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.leslie.speed.mapper.QqSpeedVehicleMapper;
import com.leslie.speed.domain.QqSpeedVehicle;
import com.leslie.speed.service.IQqSpeedVehicleService;

/**
 * 车辆信息Service业务层处理
 * 
 * @author zb
 * @date 2024-01-14
 */
@Service
public class QqSpeedVehicleServiceImpl implements IQqSpeedVehicleService 
{
    @Autowired
    private QqSpeedVehicleMapper qqSpeedVehicleMapper;

    /**
     * 查询车辆信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 车辆信息
     */
    @Override
    public QqSpeedVehicle selectQqSpeedVehicleByVehicleId(Long vehicleId)
    {
        return qqSpeedVehicleMapper.selectQqSpeedVehicleByVehicleId(vehicleId);
    }

    /**
     * 查询车辆信息列表
     * 
     * @param qqSpeedVehicle 车辆信息
     * @return 车辆信息
     */
    @Override
    public List<QqSpeedVehicle> selectQqSpeedVehicleList(QqSpeedVehicle qqSpeedVehicle)
    {
        return qqSpeedVehicleMapper.selectQqSpeedVehicleList(qqSpeedVehicle);
    }

    /**
     * 新增车辆信息
     * 
     * @param qqSpeedVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int insertQqSpeedVehicle(QqSpeedVehicle qqSpeedVehicle)
    {
        return qqSpeedVehicleMapper.insertQqSpeedVehicle(qqSpeedVehicle);
    }

    /**
     * 修改车辆信息
     * 
     * @param qqSpeedVehicle 车辆信息
     * @return 结果
     */
    @Override
    public int updateQqSpeedVehicle(QqSpeedVehicle qqSpeedVehicle)
    {
        return qqSpeedVehicleMapper.updateQqSpeedVehicle(qqSpeedVehicle);
    }

    /**
     * 批量删除车辆信息
     * 
     * @param vehicleIds 需要删除的车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteQqSpeedVehicleByVehicleIds(Long[] vehicleIds)
    {
        return qqSpeedVehicleMapper.deleteQqSpeedVehicleByVehicleIds(vehicleIds);
    }

    /**
     * 删除车辆信息信息
     * 
     * @param vehicleId 车辆信息主键
     * @return 结果
     */
    @Override
    public int deleteQqSpeedVehicleByVehicleId(Long vehicleId)
    {
        return qqSpeedVehicleMapper.deleteQqSpeedVehicleByVehicleId(vehicleId);
    }
}
